﻿using EPiServer;

namespace SocialPack.modules.SocialPack.Widgets.Google
{
    public partial class PlusOneButton : UserControlBase
    {
        public int Width { get; set; }

        public string Language { get; set; }

        public PlusOneButton()
        {
            this.Width = 450;
            this.Language = "en";
        }

        protected override void OnLoad(System.EventArgs e)
        {
            base.OnLoad(e);

            // Minimum required length is 120px
            if (this.Width < 120)
            {
                this.Width = 120;
            }
        }
    }
}